<?php if(!defined('PHPOK_SET')){die('<h3>Error...</h3>');}?><?php QG_C_TEMPLATE::p("inc.head","","0");?>
<?php QG_C_TEMPLATE::p("inc.bigad","","0");?>

<?php
require_once("global.php");
$id = 11; 
$rs = $DB->qgGetOne("SELECT id,subject,content FROM ".$prefix."special WHERE language='".LANGUAGE_ID."' AND id='".$id."' AND ifcheck='1'");
if(!$rs)
{
	qgheader("home.php");
}
$subject = $rs["subject"];
$content = $rs["content"];
$sitetitle = $subject." - ".$system["sitename"];
if($rs["url"])
{
	$content = "<a href='".$rs["url"]."' target='_blank'>".$rs["url"]."</a>";
	$content .= "<script type='text/javascript'>window.open('".$rs["url"]."');</script>";
}
$pageid = $pageid ? intval($pageid) : 0;
$qg_array = ContentPageArray($content,"special.php?id=".$id,$pageid);
$content = $qg_array[0];
$pagelist = $qg_array[1];

?>

<div id="bd">
    <div id="toolbar" class="clearfix">
    	<div id="md_sitemap">
    	    <a href="home.php">首頁</a>>
    	    <a href="#">聯繫我們</a>
    	</div>
        <?php QG_C_TEMPLATE::p("inc.search","","0");?>
    </div>
    
    <div id="md_brand" class="msgpage">
        <h3 class="title"><?php echo $subject;?></h3>
        <div class="ct resetDF"><?php echo $content;?></div>
        <div class="pager">
            <?php $_i=0;$pagelist=(is_array($pagelist))?$pagelist:array();foreach($pagelist AS  $key=>$value){$_i++; ?>
				<?php if($value[status]){?>
				<span class="m"><strong><?php echo $value[name];?></strong></span>
				<?php }else{ ?>
				<span class="n"><a href="<?php echo $value[url];?>"><?php echo $value[name];?></a></span>
				<?php } ?>
			<?php } ?>
       </div>
    </div>
</div>
<?php QG_C_TEMPLATE::p("inc.foot","","0");?>